<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<script src="D:/大学/大三上/H5移动开发/lib/tweenjs-0.5.1.min.js"></script>
<script src="D:/大学/大三上/H5移动开发/lib/easeljs-0.7.1.min.js"></script>
<body>
	<canvas id="mycanvas" width="800px" height="800px" style="border: 1px solid #ccc"></canvas>
</body>
</html>

<script type="text/javascript">
	var stage = new createjs.Stage("mycanvas")
	stage.x = 100;
	stage.y = 100;
	var circle = new createjs.Shape();

	circle.graphics.beginFill("#FF0000").drawCircle(0,0,50)
	stage.addChild(circle)

	createjs.Tween.get(circle,{loop:true}).wait(1000).to({scaleX:0.2;scaleY:0.2}).wait(1000).to({scaleX:1,scaleY:1},1000,createjs.Ease.bounceInOut)

	createjs.Ticker.setFPS(20);
	createjs.Ticker.addEventListener("tick",stage)

</script>